package com.ruoyi.mobile.mapper;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import com.ruoyi.mobile.domain.HuaweiHealthWeekStat;
import com.ruoyi.mobile.model.vo.HuaweiHealthWeekStatVo;
import org.apache.ibatis.annotations.Param;

/**
 * 华为健康每周统计数据Mapper接口
 * 
 * @author ruoyi
 * @date 2022-10-18
 */
public interface HuaweiHealthWeekStatMapper 
{
    /**
     * 查询华为健康每周统计数据列表
     * 
     * @param huaweiHealthWeekStat 华为健康每周统计数据
     * @return 华为健康每周统计数据集合
     */
    public List<HuaweiHealthWeekStat> selectHuaweiHealthWeekStatList(HuaweiHealthWeekStat huaweiHealthWeekStat);


    public List<HuaweiHealthWeekStatVo> selectHuaweiHealthWeekStatVoList(HuaweiHealthWeekStat huaweiHealthWeekStat);

    public List<HuaweiHealthWeekStatVo> selectHuaweiHealthLastWeekStatVoList(@Param("statStartDate") LocalDate statStartDate, @Param("statEndDate") LocalDate statEndDate);

    /**
     * 新增华为健康每周统计数据
     * 
     * @param huaweiHealthWeekStat 华为健康每周统计数据
     * @return 结果
     */
    public int insertHuaweiHealthWeekStat(HuaweiHealthWeekStat huaweiHealthWeekStat);


    public int delByUserIdAndDate(@Param("userId") Integer userId, @Param("statStartDate") LocalDate statStartDate, @Param("statEndDate") LocalDate statEndDate);

}
